package com.hyl.mapper;

import com.hyl.entity.SysUser;

import java.util.List;

/**
 * SysUserMapper
 *
 * @author hyl
 * @date 2025-05-23
 */
public interface SysUserMapper {
    //查询所有
    List<SysUser> selectAll();
    //根据id查询
    SysUser selectById(Integer id);
    //新增
    int insert(SysUser sysUser);
    //修改
    int update(SysUser sysUser);
    //删除
    int delete(Integer id);
    //分页：查询总记录数
    int selectTotalCount();
    //分页：查询当前页数据
    List<SysUser> selectPageData(int offset, int pageSize);
}
